package cn.fxl.feign;

import cn.fxl.ajax.AjaxResult;
import cn.fxl.domain.User;
import cn.fxl.hystrix.UserHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "user-server",fallbackFactory = UserHystrix.class)
public interface UserFeign {
    @PostMapping("/buyticket")
    AjaxResult buyticket(User user);
}
